package com.zisu.aradvertising.repository;

import com.zisu.aradvertising.pojo.Creater;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DaoCreater extends JpaRepository<Creater,Integer> {
    //账号密码登录
    Creater findCreaterByCphone(String cphone);
    Creater findCreaterByCphoneAndCpassword(String cphone, String cpassword);
    //返回所有创作者信息
    List<Creater> findAll();
    //返回单个广告商信息
    Creater findByCid(int cid);


}
